package com.ctl.mapper;

import com.ctl.dto.VideosDTO;
import com.ctl.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author stars
* @description 针对表【video(视频)】的数据库操作Mapper
* @createDate 2023-02-25 09:50:24
* @Entity com.ctl.entity.Video
*/
public interface VideoMapper extends BaseMapper<Video> {
    List<VideosDTO> getVideoByUp(@Param("page") Integer page,
                                 @Param("per_page") Integer per_page);
    List<VideosDTO> getByCategoryIdAll(@Param("page") Integer page,
                                       @Param("per_page") Integer per_page,
                                       @Param("category") Integer category);
}




